# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=tclap
pkgver=1.2.2
pkgrel=0
pkgdesc="Templatized C++ Command Line Parser"
url="http://tclap.sourceforge.net"
arch="noarch"
license="MIT"
subpackages="$pkgname-dev"
source="https://sourceforge.net/projects/tclap/files/$pkgname-$pkgver.tar.gz
	skip-docs.patch"
builddir="$srcdir/$pkgname-$pkgver"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		&& make
}

check() {
	cd "$builddir"
	make -j1 check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="516ec17f82a61277922bc8c0ed66973300bf42a738847fbbd2912c6405c34f94a13e47dc964854a5b26a9a9f1f518cce682ca54e769d6016851656c647866107  tclap-1.2.2.tar.gz
d88b298d5de2c1e8b628babc75b0a075b1c359c76b67d068e233e248c3b08dc7374865c1e725e4945fa900647d7bbf80cdaf7cbef2f198813ffa69844d04ee0b  skip-docs.patch"
